﻿using System;

using Microsoft.Win32;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SecureIDE
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void menuItem2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            const string userRoot = "HKEY_LOCAL_MACHINE";
            const string subkey = @"Security\\UserName\\";
            const string keyName = userRoot + "\\" + subkey;

            Registry.SetValue(keyName, "Name", "AmitChopra");


            pictureBox1.Visible = true;
            label1.Visible = true;
        }
    }
}